﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace IntelligentEscalator.Models
{
    public class Menu
    {
        public int id { get; set; }
        public string name { get; set; }
        public string icon { get; set; }
        public string url { get; set; }
        public int parentId { get; set; }
        public string creationDate { get; set; }
        public string creationPerson { get; set; }
        public int isDelete { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾

        public List<Menu> Child { get; set; }
        public List<FOption> Option { get; set; }
    }
    public class FOption
    {
        public int id { get; set; }
        public int menuID { get; set; }
        public string function { get; set; }
        public string functionName { get; set; }
        public string creationDate { get; set; }
        public string creationPerson { get; set; }
        public string menuName { get; set; }
        public int isDelete { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
    }

    public class MenuFunc
    {
        public int id { get; set; }
        public int parentId { get; set; }
        public string menuName { get; set; }
        public List<FOption> children { get; set; }
    }
}
